package com.buss.core.utils;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormat extends SimpleDateFormat {

	private static final long serialVersionUID = -140420668105172875L;

	public DateFormat(String format){
		super(format);
	}
	
	public Date parse(String text) throws ParseException{
		return DateUtil.parse(text, DateUtil.FORMAT_DATE);
	}
	
}
